package com.orange.api;

import java.util.HashMap;
import java.util.Map;
import server.rest.sessions.Session;

public class UserSession extends Session<String, Long>
{

    HashMap<String, Object> attrubites = new HashMap<String, Object>();

    public UserSession(String key, Long id)
    {
        super(key, id);
    }

    public HashMap<String, Object> getAttrubites()
    {
        return attrubites;
    }

    public void setAttrubites(HashMap<String, Object> attrubites)
    {
        this.attrubites = attrubites;
    }

    public void add(String key, Object object)
    {
        getAttrubites().put(key, object);
    }

    public void addAll(Map<String, Object> map)
    {
        getAttrubites().putAll(map);
    }

    public void get(String key)
    {
        getAttrubites().get(key);
    }

}
